<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client_tracking.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>
<script src="${staticServer}/inc/js/tips.js"></script>
<script src="${staticServer}/js/web/consultant_client_tracking_list.js?1.0"></script>

<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/datepicker.js"></script>

<script>
var contextPath='${contextPath}';

$(function(){
});



function getState(id){
	if(confirm("确定审核？审核后无法恢复。")){
		$.post('${contextPath}/index/addState.json',{
			id:id,
			state:1
		},function(data){
			if(data){
				if(data.msg=="1"){
					alert("审核成功!");
				}
			}
		});
	}
}


function submit(){
	window.location.href="${contextPath}/index/tealiushuiList.htm?center="+$("#center").val()+"&stu_name="+$("#stu_name").val()+"&state="+$("#state").val()+"&nickname1="+$("#nickname1").val()+"&startTime="+$("#startTime").val()+"&endTime="+$("#endTime").val();
}



</script>
</head>

<body>
<input type="hidden" id="traId" value="">
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>资源统计管理</li>
			<li>&gt;</li>
			<li class="current">内部流水列表</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">内部流水列表</div>
		<table class="simple_table" rel="nohover" style="min-width: 750px;">
			<tr>
			
				<td>
				
				<label for="phone">审核状态：</label> 
				<select id="state">
					<option value="">全部</option>
					<option value="0">未审核</option>
					<option value="1">已审核</option>
				</select>
				<label for="phone">老师姓名：</label> 
				<input type="text" value="" id="nickname1" />
               	</td>
             
              	<td rowspan="4">
              	<input type="button" value=" 查 询 " onclick="submit()" />
              	<a href="${contextPath}/index/addLiushui.htm"><input type="button" value=" 添加流水 " /></a>
			</tr>
		</table>
		<table>
			<tr class="fields">
				<th width="70">老师姓名</th>
				<th width="70">中心地址</th>
				<th width="100">科目名称</th>
				<th width="70">收款/付款日期</th>
				<th width="100">摘要</th>
				<th width="40">金额</th>
				<th width="70">本位币余额</th>
				<th width="80">备注</th>
				<th width="50">审核状态</th>
				<th width="50">操作</th>
			</tr>
			
			<#if list??>
				<#list list as list>
				<tbody id="datas">
					<tr class="even_row">
						<td align="center">${list.teacher}</td>
						<td align="center">${list.tea_center}</td>
						<td align="center">
							<#if list.type=="1">
								收入
							<#elseif list.type=="2">
								支出
							</#if>
						</td>
						<td align="center">${list.date}</td>
						<td align="center">${list.zhaiyao}</td>
						<td align="center">${list.moneys}</td>
						<td align="center">${list.yue}</td>
						<td align="center">${list.beizhu}</td>
						<td align="center">
							<#if list.state=="0">
								未审核
							<#else>
								已通过
							</#if>
						</td>
						<td align="center">
						<#if list.state=="0">
							<a href="${contextPath}/index/addLiushui.htm?id=${list.id}">编辑</a>
						<#else>
							<a style="color: #A2929F;" herf="#">编辑</a>
						</#if>
							
						</td>
					</tr>
				</#list>
			</#if>
		</table>
	</div>
	
	<div id="pager">
	<ul id="pagination" style="padding-left: 14px">
		<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
			<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
				<#if currpage==1 >
					<li class="previous-off">首页</li>
					<li class="previous-off">上一页</li>
					<#else>
					<li class="previous"><a href="${contextPath}/index/tealiushuiList.htm?currPage=1">首页</a></li>
					<li class="previous"><a href="${contextPath}/index/tealiushuiList.htm?currPage=${currpage-1}">上一页</a></li>
					</#if>
					<input type="hidden" id="total" value="${page.pagetotal}" />	
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/index/tealiushuiList.htm?currPage=${index_up}">${index_up}</a></li>
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/tealiushuiList.htm?currPage=${index_up}">${index_up}</a></li>
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/index/tealiushuiList.htm?currPage=${pagetotal}">${pagetotal}</a></li>
				
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/index/tealiushuiList.htm?currPage=1">1</a></li>
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/tealiushuiList.htm?currPage=${index_up}">${index_up}</a></li>
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/index/tealiushuiList.htm?currPage=${pagetotal}">${pagetotal}</a></li>
			<#else>
				<li><a href="${contextPath}/index/tealiushuiList.htm?currPage=1">1</a></li>
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/tealiushuiList.htm?currPage=${index_up}">${index_up}</a></li>
	           	</#if>
				</#list>  
			</#if>
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		 	<li class="previous-off">尾页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/index/tealiushuiList.htm?currPage=${currpage+1}">下一页</a></li>
			<li class="previous"><a href="${contextPath}/index/tealiushuiList.htm?currPage=${page.pagetotal}">尾页</a></li>
		</#if>
		<li class="previous"></li>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
	</ul>
	</div>
	
	<div class="emptyline"></div>
</body>
</html>